<template>
	<view class="page-wrap" :data-theme="theme" :class="theme" :style="globalColor.style">
		<HeadCustom title="平台审核" :isAppBtn="false"></HeadCustom>
		<view class="fboxWrap Ycenter Xcenter">
		<view class="tips-box fboxCol Ycenter Xcenter" v-if="detail.auditStatus == 0">
			<view class="img"><image class="icon" src="https://ebc-prod.cdn.benwunet.com/uni-static/workplace/icon-yes.png" mode=""></image> </view>
			<view class="tit mt32 font30 lh44">信息已提交，请等待平台审核！</view>
			<view class="btn mt32 fboxRow Ycenter Xcenter border-E8CDA7 font26 color-E8CDA7" @click="back">返回</view>
		</view>
		<view class="tips-box fboxCol Ycenter Xcenter" v-if="detail.auditStatus == 2">
			<view class="img"><image class="icon" src="https://ebc-prod.cdn.benwunet.com/uni-static/workplace/icon-err.png" mode=""></image> </view>
			<view class="tit mt32 font30 lh44">平台审核未通过</view>
			<view class="con color-ACB4C7 mt16 font26 lh38">您发布的招聘信息，平台审核未通过， <br/> 原因：{{detail.auditRemark}}</view>
			<view class="btn mt32 fboxRow Ycenter Xcenter border-E8CDA7 font26 color-E8CDA7" @click="goPage">编辑并重新提交</view>
		</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				theme: getApp().globalData.appTheme,
						globalColor: getApp().globalData.globalColor,
				id: '',
				detail: {}
			}
		},
		onLoad(option) {
			if(option && option.id){
				this.id = option.id
			}
			this.detail = getApp().globalData.recruitmentTemp
			console.log(this.detail)
		},
		methods: {
			back(){
				uni.navigateBack({
					delta: 1
				})
			},
			goPage(){
				// 关闭当前页
				this.$pageTo('/recruit/enterprise/publishRecruitment?id='+this.detail.id, 'redirectTo')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page-wrap{min-height: calc(100vh);}
	.tips-box{padding: 120rpx 0;width: 576rpx;}
	.icon{width: 120rpx;height: 120rpx}
	.btn{ padding: 0 12rpx; min-width: 208rpx;height: 56rpx;border-radius: 8rpx;}
</style>
